﻿using System;

class Sheets
{
    static void Main(string[] args)
    {
        System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;

        int numberOfSheets = int.Parse(Console.ReadLine());

        string numberOfSheetsBinary= Convert.ToString(numberOfSheets,2).PadLeft(11,'0');
        
        for (int index = 0; index < 11; index++)
        {
            if (numberOfSheetsBinary[index] == '0')
            {
                Console.WriteLine("A" + index);
            }
        }

    }
}
